﻿using System;
using System.Linq.Expressions;

namespace Netkk.Core.Validation
{
    public interface IValidationDictionary
    {
        void AddError(string key, string errorMessage);
        void AddError<TModel, TProperty>(Expression<Func<TModel, TProperty>> expression, string errorMessage)
            where TModel : class;
        bool IsValid { get; }
    }
}